<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="status">
            <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
            {foreach name="statusList" item="vo"}
            <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
            {/foreach}
        </ul>
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('booking/house/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('booking/house/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('booking/house/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        
                        <div class="dropdown btn-group {:$auth->check('booking/house/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('批量上下架')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=up"><i class="fa fa-eye"></i> {:__('设为上架')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=down"><i class="fa fa-eye-slash"></i> {:__('设为下架')}</a></li>
                            </ul>
                        </div>
                        <a href="javascript:;" class="btn btn-danger btn-warning btn-diy-field{:$auth->check('booking/house/diyfield')?'':'hide'}" title="{:__('DiyField')}" ><i class="fa fa-edit"></i> {:__('DiyField')}</a>
                        <a href="javascript:;" class="btn btn-primary btn-dialog {:$auth->check('booking/config/index')?'':'hide'}" data-area='["80%","80%"]' data-url="{:url('booking/config/index')}" title="{:__('房间配置管理')}" ><i class="fa fa-eye"></i> {:__('房间配置管理')}</a>
                        <a href="javascript:;" class="btn btn-warning btn-house-search {:$auth->check('booking/house/search')?'':'hide'}" title="{:__('房间预订状态')}" ><i class="fa fa-eye"></i> {:__('房间预订状态')}</a>
                        <a href="javascript:;" class="btn btn-info btn-dialog {:$auth->check('booking/wifi/index')?'':'hide'}" data-area='["80%","80%"]' data-url="{:url('booking/wifi/index')}" title="{:__('房间WIFI')}" ><i class="fa fa-wifi"></i> {:__('房间WIFI')}</a>

                        
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('booking/house/edit')}" 
                           data-operate-del="{:$auth->check('booking/house/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
